<html data-dpr="1" style="font-size: 37.5px;">
 <head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1" />
  <meta id="i18n_pagename" content="yuebao-common">
  <title>{:C('sitename')}</title>
  <link href="/ascss/1.css" rel="stylesheet" />
  <link href="/ascss/mui/css/mui.min.css" rel="stylesheet" />
  <link href="/ascss/ek.css" rel="stylesheet" />
  <link href="/ascss/user.css" rel="stylesheet" />
  <style type="text/css" title="fading circle style">
  	.circle-color-25 > div::before { background-color: #ccc; }
  	.headerContent {border-left:0;padding-left: 5px;margin-top: 13px;}
  	.ek-yeb-top{border:0 !important}
  	.ek-yeb-tp{background:#33385e !important;font-size:14px;}
  	.ek-yeb-tp p{margin-bottom:0px;}
  	.ws-yeb-box{margin:20px !important;background-color: #33385e !important;}
  	.ws-yeb-box h3{color: #fff !important;text-align: center;}
  	.ws-yeb-zr{position: relative;border-bottom:0 !important;}
  	.ws-yeb-zr span{position: absolute;height: 35px !important;line-height: 35px !important;font-size: 16px;left: 2px;color: #fff !important;}
  	.ws-yeb-zr input{font-size: 15px !important;height: 35px !important;background: #2d3152; border: 0;color: #fff !important;padding-left: 45px;}
  	.ws-yeb-sybz{}
  	.ws-yeb-sybz>span{background:#2d3152 !important;border: 0 !important;border-radius: 5px;}
  	.ws-yeb-sybz p{margin-bottom:0}
  	.ws-yeb-sybz .c2{font-size:14px !important; color:#ff575c !important;}
  	.ws-yeb-sybz .c1{font-size:14px !important; color:#fff !important}
  	.ws-yeb-sybz .active{background:#1b1e31 !important}
  	.ws-yeb-sybz .active p{color:#fff !important;}
  	.ws-yeb-sybz .active .c1{background:#1b1e31 !important;}
  	.ws-yeb-zcbtn{border: 0 !important;background: #0da3ff !important; color: #fff !important;height: 40px !important;line-height: 29px !important;opacity: 1;}
  	.ws-yeb-zrbtn{border: 0 !important;background: #ff7614 !important; color: #fff !important;height: 40px !important;line-height: 29px !important;opacity: 1;}
  </style>
   <script>
    (function (win, lib) {
      var doc = win.document
      var docEl = doc.documentElement
      var metaEl = doc.querySelector('meta[name="viewport"]')
      var flexibleEl = doc.querySelector('meta[name="flexible"]')
      var dpr = 0
      var scale = 0
      var tid
      var flexible = lib.flexible || (lib.flexible = {})
 
      if (metaEl) {
        console.warn('将根据已有的meta标签来设置缩放比例')
        var match = metaEl.getAttribute('content').match(/initial\-scale=([\d\.]+)/)
        if (match) {
          scale = parseFloat(match[1])
          dpr = parseInt(1 / scale)
        }
      } else if (flexibleEl) {
        var content = flexibleEl.getAttribute('content')
        if (content) {
          var initialDpr = content.match(/initial\-dpr=([\d\.]+)/)
          var maximumDpr = content.match(/maximum\-dpr=([\d\.]+)/)
          if (initialDpr) {
            dpr = parseFloat(initialDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
          if (maximumDpr) {
            dpr = parseFloat(maximumDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
        }
      }
 
      if (!dpr && !scale) {
        var isAndroid = win.navigator.appVersion.match(/android/gi)
        var isIPhone = win.navigator.appVersion.match(/iphone/gi)
        var devicePixelRatio = win.devicePixelRatio
//          if (isIPhone) {
//            // iOS下，对于2和3的屏，用2倍的方案，其余的用1倍方案
//            if (devicePixelRatio >= 3 && (!dpr || dpr >= 3)) {
//              dpr = 3;
//            } else if (devicePixelRatio >= 2 && (!dpr || dpr >= 2)){
//              dpr = 2;
//            } else {
//              dpr = 1;
//            }
//          } else {
//            // 其他设备下，仍旧使用1倍的方案
//            dpr = 1;
//          }
        dpr = 1
        scale = 1 / dpr
      }
 
      docEl.setAttribute('data-dpr', dpr)
      if (!metaEl) {
        metaEl = doc.createElement('meta')
        metaEl.setAttribute('name', 'viewport')
        metaEl.setAttribute('content', 'initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale + ', user-scalable=no')
        if (docEl.firstElementChild) {
          docEl.firstElementChild.appendChild(metaEl)
        } else {
          var wrap = doc.createElement('div')
          wrap.appendChild(metaEl)
          doc.write(wrap.innerHTML)
        }
      }
 
      function refreshRem () {
        var width = docEl.getBoundingClientRect().width
        if (width / dpr > 540) {
          width = 540 * dpr
        }
        var rem = width / 10
        docEl.style.fontSize = rem + 'px'
        flexible.rem = win.rem = rem
      }
 
      win.addEventListener('resize', function () {
        clearTimeout(tid)
        tid = setTimeout(refreshRem, 300)
      }, false)
      win.addEventListener('pageshow', function (e) {
        if (e.persisted) {
          clearTimeout(tid)
          tid = setTimeout(refreshRem, 300)
        }
      }, false)
 
      if (doc.readyState === 'complete') {
//          doc.body.style.fontSize = 12 * dpr + 'px';
        doc.body.style.fontSize = 16 + 'px'
      } else {
        doc.addEventListener('DOMContentLoaded', function (e) {
//            doc.body.style.fontSize = 12 * dpr + 'px';
          doc.body.style.fontSize = 16 + 'px'
        }, false)
      }
 
      refreshRem()
 
      flexible.dpr = win.dpr = dpr
      flexible.refreshRem = refreshRem
      flexible.rem2px = function (d) {
        var val = parseFloat(d) * this.rem
        if (typeof d === 'string' && d.match(/rem$/)) {
          val += 'px'
        }
        return val
      }
      flexible.px2rem = function (d) {
        var val = parseFloat(d) / this.rem
        if (typeof d === 'string' && d.match(/px$/)) {
          val += 'rem'
        }
        return val
      }
 
    })(window, window['lib'] || (window['lib'] = {}))
  </script>
  <!-- 环境判断:测试、正式 -->
  <script>
    var host = window.location.host
    ;(function isFormalEnv(host){
      if(host.indexOf('kw13.cn') !== -1){
        window.isFormalEnv = true
        window.isTestEnv = false
      } else if(host.indexOf('kwmzy.com') !== -1) {
        window.isTestEnv = true
        window.isFormalEnv = false
      }
    })(host)
  </script>
  <!-- 腾讯移动统计配置 -->
  <script>
    var mtah5 = {}
    if(window.isFormalEnv){
      mtah5.sid = 500411881
      mtah5.cid = 500432840
    } else { // 本地、测试环境使用
      mtah5.sid = 500412096
      mtah5.cid = 500426037
    }
    var _mtac = {"performanceMonitor":1,"senseQuery":1};
    (function() {
      var mta = document.createElement("script");
      mta.setAttribute("name", "MTAH5");
      mta.setAttribute("sid", mtah5.sid);
      mta.setAttribute("cid", mtah5.cid);
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(mta, s);
    })();
  </script>
  <script>
    window.origin = window.location.origin
  </script>
 </head>
 <body style="font-size: 12px;">

  <div id="app">
  	<header class="mui-bar mui-bar-nav top-status"> <div class="flex-start headerContent"><img src="/images/static/menu.png" height="16"><div class="logoText" data-language="tzlc-tzlc">投资理财</div></div></header>
   <div data-v-6c73bfdf="" class="">
   	
   	<div class="mui-content">
		<div data-v-792dab99="" class="report ek-yeb-top">
            <div data-v-792dab99="" class="cen red ek-yeb-tp">
                <p data-v-792dab99="" data-language="tzlc-ztz">总货币</p>
               {$user.total}           </div>
            <div data-v-792dab99="" class="lf ek-yeb-tp" style="font-size: 13px">
                <p data-v-792dab99="" data-language="tzlc-yeb">转入货币</p>
                +{$user.yuebao}           </div>
            <div data-v-792dab99="" class="rg red ek-yeb-tp">
                <p data-v-792dab99="" data-language="tzlc-zsy">总收益</p>
                +{$user.yuebao_income}            </div>
            <div data-v-792dab99="" class="rg red ek-yeb-tp">
                <p data-v-792dab99="" data-language="tzlc-zrsy">昨日收益</p>
                +{$zrsy}          </div>
        </div>
        <input data-v-792dab99="" type="hidden"  id="money" value="{$user.points}">
		<div data-v-792dab99="" class="Cash_num ws-yeb-box">
            <h3 data-v-792dab99="" data-language="tzlc-hbzr">货币转入</h3>
            <div data-v-792dab99="" class="Cash_num_money ws-yeb-zr">
                <span data-v-792dab99="">USDT：</span>
                <input data-v-792dab99="" class="i18n-input" type="number" name="price" id="price" selectname="tzlc-qsr" selectattr="placeholder" placeholder="请输入转入数量">
            </div>

            <div data-v-792dab99="" class="Cash_num_money ws-yeb-zr">
                <span data-v-792dab99="" style="left:15px !important;" data-language="tzlc-yjsy">收益</span>
                <input data-v-792dab99="" type="text" name="yuji" id="yjsy" placeholder="" value="" style="padding-left: 100px !important">
            </div>
            <h4 data-v-792dab99="" data-language="tzlc-sybz">收益标准</h4>
            <div data-v-792dab99="" class="Cash_num_password ws-yeb-sybz" data-id="1">
            
                	<foreach name = "list" item = "val">
	                <span data-v-792dab99="" data-id="{$val.id}" class="col-xs-3 ch5 " style="width: 45%" data-day="{$val.day}" data-ts="{$val.rate}" data-lx="{$val.fee}">
	                    <p data-v-792dab99="" class="c2">{$val.name}</p>
	                    <p data-v-792dab99="" class="c2">+{$val.rate}&nbsp;<small data-v-792dab99="">%</small></p>
	                    <p data-v-792dab99="" class="c1"><i data-language="tzlc-d">[定]</i> {$val.day}&nbsp;<small data-v-792dab99="" data-language="tzlc-t">天</small></p>
	                </span>
                </foreach>
                <!--<span data-v-792dab99="" data-id="2" class="col-xs-3 ch5 active" style="width: 45%" data-ts="7" data-lx="0.02">-->
                <!--    <p data-v-792dab99="" class="c2">七天体验</p>-->
                <!--    <p data-v-792dab99="" class="c2">+2&nbsp;<small data-v-792dab99="">%</small></p>-->
                <!--    <p data-v-792dab99="" class="c1">[定] 7&nbsp;<small data-v-792dab99="">天</small></p>-->
                <!--</span><span data-v-792dab99="" data-id="3" class="col-xs-3 ch5" style="width: 45%" data-ts="30" data-lx="0.03">-->
                <!--    <p data-v-792dab99="" class="c2">一个月体验</p>-->
                <!--    <p data-v-792dab99="" class="c2">+3&nbsp;<small data-v-792dab99="">%</small></p>-->
                <!--    <p data-v-792dab99="" class="c1">[定] 30&nbsp;<small data-v-792dab99="">天</small></p>-->
                <!--</span><span data-v-792dab99="" data-id="4" class="col-xs-3 ch5" style="width: 45%" data-ts="365" data-lx="0.05">-->
                <!--    <p data-v-792dab99="" class="c2">一年高收益</p>-->
                <!--    <p data-v-792dab99="" class="c2">+5&nbsp;<small data-v-792dab99="">%</small></p>-->
                <!--    <p data-v-792dab99="" class="c1">[定] 365&nbsp;<small data-v-792dab99="">天</small></p>-->
                <!--</span>                -->
            </div>
        </div>
        <div data-v-792dab99="" class="postForm">
            <button data-v-792dab99="" class="auto ws-yeb-zcbtn" onclick="javascript:window.location.href='/home/User/yeblist'" data-language="tzlc-zc">转出</button>
            <button data-v-792dab99="" class="save-btn ws-yeb-zrbtn" id="ru" data-language="tzlc-zr">转入</button>
        </div>
		
	</div>
   	
  
   	
   	
   	
    
<ul class="nav-bottom-box">
   <li><a href="/Home/Run/index">
     <div class="icon-home nav-bottom-icon"></div>
     <div class="nav-bottom-box-label" data-language="common_dtdt">
      大厅动态
     </div></a></li>
   <li><a href="/Home/User/zs">
     <div class="icon-lottery nav-bottom-icon"></div>
     <div class="nav-bottom-box-label" data-language="common_sczs">
      市场走势
     </div></a></li>
   <li class="mui-active"><a href="/home/User/yuebao">
     <div class="icon-news nav-bottom-icon"></div>
     <div class="nav-bottom-box-label" data-language="common_tzlc">
      投资理财
     </div></a></li>
   <li><a href="/Home/User/kefu.html">
     <div class="icon-homeService nav-bottom-icon"></div>
     <div class="nav-bottom-box-label" data-language="common_kf">
      客服
     </div></a></li>
   <li><a href="/Home/User/index">
     <div class="icon-contact nav-bottom-icon"></div>
     <div class="nav-bottom-box-label" data-language="common_wd">
      我的
     </div></a></li>
  </ul>
	
	

    <br data-v-6c73bfdf="" />
    <br data-v-6c73bfdf="" />
    <br data-v-6c73bfdf="" />
   </div>
  </div>
<script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/ascss/js/jquery.i18n.properties.js"></script>
<script src="/ascss/js/language.js"></script>
<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>

<script src="__PUBLIC__/Common/js/ajaxForm.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>

 	<script>
 
   		$(function(){
   			
   			
   		$("#chu").click(function(){
 	        	var money = $('#money').val()
		 		var rumoney = $('#price').val()
		 		var fee = $('#yjsy').val()
		 		var typeid = $('.active').data('id')
		 		if(!typeid ||!rumoney ){
		 			layer.msg('请填写完整')
		 			return
		 		}
		 			
				$.ajax({
					url:"{:U('Home/User/chu')}",
					type: 'post',
					data: {'typeid':typeid,'rumoney':rumoney,'fee':fee},
					success: function (data) {
						console.log(data);
						if(data.status==1){
							layer.msg(data.info, {icon: 1,shade:0.8},function(){
								location.reload();
							});
						}else{
							layer.msg(data.info,{icon: 2,shade:0.8});
						}

					}
				})
 		})
 		$("#ru").click(function(){
 				var money = $('#money').val()
		 		var rumoney = $('#price').val()
		 		var fee = $('#yjsy').val()
		 		var typeid = $('.active').data('id')
		 		if(!typeid ||!rumoney ){
		 			layer.msg('请填写完整')
		 			return
		 		}
		 		if(parseFloat(rumoney)>parseFloat(money)){
		 				layer.msg('金额超过总金额'+money)
		 				return
		 		}
		 		
				$.ajax({
					url:"{:U('Home/User/ru')}",
					type: 'post',
					data: {'typeid':typeid,'rumoney':rumoney,'fee':fee},
					success: function (data) {
						console.log(data);
						if(data.status==1){
							layer.msg(data.info, {icon: 1,shade:0.8},function(){
								location.reload();
							});
						}else{
							layer.msg(data.info,{icon: 2,shade:0.8});
						}

					}
				})
		 	
 		})
 
   			
   			
   			
   			$(".ws-yeb-sybz span").click(function(){
   				$(".ws-yeb-sybz span").removeClass("active");
   				$(this).addClass("active");
   				
   				var price = $("#price").val();
			    var yebts = $(".ws-yeb-sybz .active").data("ts");
			    var yeblx = $(".ws-yeb-sybz .active").data("lx");
			    var day= $(".ws-yeb-sybz .active").data("day");
			    $("#yjsy").val(price * yebts/100 * (1-yeblx/100) *day);
   			})
   			
   			$("#price").bind("input propertychange",function(event){
			    var price = $("#price").val();
			    var yebts = $(".ws-yeb-sybz .active").data("ts");
			    var yeblx = $(".ws-yeb-sybz .active").data("lx");
			      var day= $(".ws-yeb-sybz .active").data("day");
			      $("#yjsy").val(price * yebts/100 *(1-yeblx/100) *day );
			});
			
   		})
   	</script>

<script type="text/javascript">

	function logout(){
		$.ajax({
			url:"/Home/Index/logout",
			type: 'post',

			success: function (data) {

				setTimeout('myrefresh()',500); //指定1秒刷新一次
			}
		})
	}



	function handleFiles(obj,id){
		file = document.getElementById("icon");
		console.log(file);
		var files = obj.files;
		img = new Image();
		if(window.URL){
			//File API
			img.src = window.URL.createObjectURL(files[0]); //创建一个object URL，并不是你的本地路径
			img.onload = function(e) {
				console.log(e);
				window.URL.revokeObjectURL(this.src); //图片加载后，释放object URL
			}
		}
		file.src=img.src;
		var fd = new FormData();//实例化一个表单
		xhr = new XMLHttpRequest();
		fd.append('file', files[0]);//追加图片元素
		$.ajax({
			url: "{:u('Home/user/avatarUpload')}",
			type: 'post',
			cache: false,
			data: fd,
			processData: false,
			contentType: false,
			dataType:"json",
			accept: {
				title: 'Images',
				extensions: 'gif,jpg,jpeg,bmp,png',
				mimeTypes: 'image/*'
			},
			success : function(data) {
				if(data.status==1){
					layer.msg(data.info, {icon: 1,shade:0.8});
					setTimeout('myrefresh()',1000); //指定1秒刷新一次
				}else{
					layer.msg(data.info,{icon: 2,shade:0.8});
				}
			}
		});
	}



	$('#zhuanrang').on('click', function () {
		layer.open({
			type: 1,
			title: '转让元宝',

			area: ['100%', '300px'],
			shadeClose: false,
			btn:["确认"],
			content: '<div class="chongzhi-box">\n' +
					'<br>\n' +
					'<p style="padding: 5px 15px;"><span>转账用户ID:</span><input name="userid" id="userid" type="number" style="margin-left: 15px;"/></p>' +
					'<p style="padding: 5px 15px;"><span> &nbsp;&nbsp;&nbsp;转账数量:</span><input name="money" id="money" type="number" style="margin-left: 15px;"/></p>' +
					'<p style="padding: 5px 15px;"><span> &nbsp;&nbsp;&nbsp;提现密码:</span><input name="pass" id="pass" type="password" style="margin-left: 15px;"/></p>' +
					'</div>',
			yes: function(index, layero){
				var userid = document.getElementById("userid").value;
				var money = document.getElementById("money").value;
				var pass=document.getElementById("pass").value;

				var data=  {userid:userid,money:money,pass:pass};

				$.ajax({
					url:"{:U('Home/User/transferPost')}",
					type: 'post',
					data:data,
					success: function (data) {
						console.log(data);
						if(data.status==1){
							layer.msg(data.info, {icon: 1,shade:0.8},function(){
								location.reload();
							});
						}else{
							layer.msg(data.info,{icon: 2,shade:0.8});
						}

					}
				})
			}
		});
	})



	$(function(){
		$('#LoginForm').ajaxForm({
			beforeSubmit: checkForm,
			success: complete,
			dataType: 'json'
		});
		function checkForm(){

		}
		function complete(data){
			if(data.status==1){
				$('.btn').attr('disabled','disabled');
				layer.msg(data.info, function(index){
					layer.close(index);
					window.location.href=data.url;
				});
			}else{
				layer.msg(data.info);
				$('#password').val('').focus();
				return false;
			}
		}
	});

	function myrefresh()
	{
		window.location.reload();
	}


</script>

<script src="__PUBLIC__/Home/js/cls.js"></script>

 </body>
</html>